#ifndef _SOCKETIO_H_
#define _SOCKETIO_H_

namespace http_server 
{
class socketIO
{
public:
	explicit socketIO(int fd)
	: _fd(fd) {}
	
	int read_line(char* , int );
	void decode(char* , const char* );
	void encode(char* , int , const char* );

private:
	int Peek(char*);
	int hexit(char);

private:
	int _fd;
};
}

#endif